<?php

namespace AppBundle\Entity;

/**
 * RoleMenu
 */
class RoleMenu
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var \AppBundle\Entity\Roles
     */
    private $role;

    /**
     * @var \AppBundle\Entity\Backmenus
     */
    private $menu;


    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set role
     *
     * @param \AppBundle\Entity\Roles $role
     *
     * @return RoleMenu
     */
    public function setRole(\AppBundle\Entity\Roles $role = null)
    {
        $this->role = $role;

        return $this;
    }

    /**
     * Get role
     *
     * @return \AppBundle\Entity\Roles
     */
    public function getRole()
    {
        return $this->role;
    }

    /**
     * Set menu
     *
     * @param \AppBundle\Entity\Backmenus $menu
     *
     * @return RoleMenu
     */
    public function setMenu(\AppBundle\Entity\Backmenus $menu = null)
    {
        $this->menu = $menu;

        return $this;
    }

    /**
     * Get menu
     *
     * @return \AppBundle\Entity\Backmenus
     */
    public function getMenu()
    {
        return $this->menu;
    }
}
